#ifndef __PLUG_DATAMNG_H__
#define __PLUG_DATAMNG_H__

#include "hi_type.h"
#include "plug_common.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* End of #ifdef __cplusplus */

/**
 * @brief write system config
 * @param[in] pazFileName : File Name
 * @param[in] stInfo : plug dev info
 * @return 0 success
 * @return -1 failure
 */
HI_S32 PLUG_DATAMNG_WriteConfig(HI_CHAR *pazFileName, PLUG_COMMON_DEV_INFO_S stInfo);

/**
 * @brief read and update system config
 * @param[in] pazFileName : File Name
 * @param[in] pstInfo : device info
 * @return 0 success
 * @return -1 failure
 */
HI_S32 PLUG_DATAMNG_ReadConfig(HI_CHAR *pazFileName, PLUG_COMMON_DEV_INFO_S* pstInfo);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* End of #ifdef __cplusplus */

#endif

